﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TextEditor.aspx.cs" Inherits="Phong_CTSV.TextEditor" %>
<%@ Register TagPrefix="cc"
    Namespace="Winthusiasm.HtmlEditor"
    Assembly="Winthusiasm.HtmlEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<br />
<br />
<div align="center">
    <asp:Label ID="lbTitle" runat="server" Text="Cập Nhật Nội Dung Trang Chủ" 
        style="color: #0000FF; font-size: x-large; font-weight: 700" />
</div>
<br />
<div id="TieuDe">
    <asp:Label ID="lbTieuDe" runat="server" Text="Tiêu đề:" Width="70" 
        style="font-size: medium; text-decoration: underline; color: #0000CC; margin-bottom: 2px;"/>
    <asp:TextBox ID="txtTitle" runat="server" Text="" Width="580px" Height="25px" 
        style="font-size: medium; color: #0000CC;  margin-bottom: 0px; "/>
</div>
<div id="body">   

        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" />
        
        <div id="Content">
        
            <table id="DemoTable" border="0" cellpadding="0" cellspacing="0">
            
                <tr>
                
                    <td id="EditorCell">

                        <div id="EditorPanel">

                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >                             
                                <ContentTemplate>                                
                                    <cc:HtmlEditor ID="Editor" runat="server" Height="400px" Width="800px"/>                                
                                </ContentTemplate>
                            </asp:UpdatePanel>                                        
                            
                        </div>

                    </td>     
                    
                    <td id="OptionsCell">
                        <div id="Options">
                               <asp:Button ID="SaveButton" runat="server" Text="Cập nhật & Xem" 
                                   OnClick="SaveButton_Click" CssClass="button" 
                                   ToolTip="Save the current editor text" Width="95px" />                               
                                <asp:Button ID="ClearButton" runat="server" Text="Xóa hết" 
                                   OnClick="ClearButton_Click" CssClass="button" 
                                   ToolTip="Clear the text in the editor above" Width="96px" />
                        </div>
                    </td>   

                </tr>
            
            </table>

        </div>
        <br />
<script type="text/javascript">

    function GetHtmlEditor() {
        return $find('<%= Editor.ClientID %>');
    }

</script>

</div>
</asp:Content>

